# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sessreg
pkgver=1.1.2
pkgrel=0
pkgdesc="manage utmp/wtmp entries for non-init clients"
options="!check" # No testsuite
url="https://wiki.freedesktop.org/xorg/"
arch="all"
license="ICU"
subpackages="$pkgname-doc"
makedepends="bsd-compat-headers linux-headers xorgproto"
source="https://www.x.org/releases/individual/app/sessreg-$pkgver.tar.bz2
	missing_path_wtmpx.patch"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man
	make
}

package() {
	make DESTDIR="$pkgdir" install
}
sha512sums="7e3c2bdcadb7133aace463b58d8c6108d315ec95d2a42509073eeddc7f02644092a4b3168bd3b426c041736a016291092e0bf8368acd620dbeff96d53d12f98c  sessreg-1.1.2.tar.bz2
57a7dea5f0f9d8c3f54aa3aeb98f6fa8cd44e9d7397c81ad40e973ad3a548b7137a986bda6367df5d867d2b1e6d8eacdd182fcf920ea9d1e8c70cc64f40651df  missing_path_wtmpx.patch"
